package net.imwork.amorgemini.core.dict;

/**
 * Created by lvbr on 2017-07-27 17:47.
 */
public enum ExceptionDict {

    SUCCESS(0, "success"),
    UNKNOW_ERROR(-1, "未知错误"),
    SYSTEM_ERROR(-1, ""),
    LOGIN_ERROR(555, "用户名或密码错误"),
    EXISTS_ERROR(666, "用户名已存在"),
    ;

    private Integer code;

    private String msg;

    ExceptionDict(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
